{template 'header', $TP}
<div class="head_bar">
<table>
<tr>
<td class="head_bar_td_w5">&nbsp;</td>
<td class="head_bar_td_w50"><div class="head_back"><a href="{$back_link}"><span>Return</span></a></div></td>
<td><div class="head_name"><a href="{$head_link}"><span>{$head_name}</span></a></div></td>
<td class="head_bar_td_w55 t_r">{if $userid}<a href="index.php?moduleid={$moduleid}&amp;username={$username}"><img src="image/home.png" width="40" height="40" alt="index"/></a>{else}<a href="index.php?moduleid={$moduleid}&amp;action=category"><img src="image/sort.png" width="40" height="40" alt="Category"/></a>{/if}</td>
</tr>
</table>
</div>
<div class="head_bar_fix"></div>

{if $userid}
<div class="menu">
<ul>
<li{if $action=='sell'} class="f_b"{/if}><a href="index.php?moduleid={$moduleid}&amp;username={$username}&amp;action=sell">Products</a></li>
<li{if $action=='news'} class="f_b"{/if}><a href="index.php?moduleid={$moduleid}&amp;username={$username}&amp;action=news">News</a></li>
<li{if $action=='introduce'} class="f_b"{/if}><a href="index.php?moduleid={$moduleid}&amp;username={$username}&amp;action=introduce">About</a></li>
<li{if $action=='contact'} class="f_b"{/if}><a href="index.php?moduleid={$moduleid}&amp;username={$username}&amp;action=contact">Contact Us</a></li>
</ul>
<div class="c_b"></div>
</div>
{/if}

<div class="main">
{if $userid}
	{if $action=='introduce'}
		<div class="content">
		{if $thumb}<center><img src="{$thumb}"/></center>{/if}
		{$content}
		</div>
	{elseif $action=='news'}
		{if $itemid}
			<div class="title"><strong>{$title}</strong></div>
			<div class="info">date:<small>{$adddate}</small>&nbsp;&nbsp;chick:<small>{$hits}</small></div>
			<div class="content">{$content}</div>
		{else}
			{if $MTYPE}
			<div class="content">
				<a href="index.php?moduleid={$moduleid}&amp;username={$username}&amp;action={$action}"{if $typeid==0} class="f_b"{/if}>all</a>
				{loop $MTYPE $t}
				&nbsp;|&nbsp;<a href="index.php?moduleid={$moduleid}&amp;username={$username}&amp;action={$action}&amp;typeid={$t[typeid]}"{if $typeid==$t[typeid]} class="f_b"{/if}>{$t[typename]}</a>
				{/loop}
			</div>
			{/if}
			<ul class="listtxt">
			{loop $lists $v}
			<li><span class="f_r px11 f_gray">&nbsp;{timetodate($v[addtime], 3)}</span><a href="index.php?moduleid={$moduleid}&amp;username={$username}&amp;action={$action}&amp;itemid={$v[itemid]}">{$v[title]}</a></li>
			{/loop}
			</ul>
		{/if}
	{elseif $action=='sell'}
		{if $MTYPE}
		<div class="content">
			<a href="index.php?moduleid={$moduleid}&amp;username={$username}&amp;action={$action}"{if $typeid==0} class="f_b"{/if}>all</a>
			{loop $MTYPE $t}
			&nbsp;|&nbsp;<a href="index.php?moduleid={$moduleid}&amp;username={$username}&amp;action={$action}&amp;typeid={$t[typeid]}"{if $typeid==$t[typeid]} class="f_b"{/if}>{$t[typename]}</a>
			{/loop}
		</div>
		{/if}
		{loop $lists $v}
		<div class="listimg">
		<a href="index.php?moduleid=5&amp;itemid={$v[itemid]}"><img src="{if $v[thumb]}{$v[thumb]}{else}image/nopic.png{/if}" width="55" height="55" alt=""/></a>
		<ul>
		<li><a href="index.php?moduleid=5&amp;itemid={$v[itemid]}"><strong>{$v[title]}</strong></a></li>
		<li><em>{$v[date]}</em></li>
		<li{if $v[vip]} class="vip" title="{VIP}:{$v[vip]}"{/if}><a href="index.php?moduleid=4&amp;username={$v[username]}"><span>{$v[company]}</span></a></li>
		</ul>
		</div>
		{/loop}
	{elseif $action=='contact'}
		<div class="content">
		{if $could_contact}
			{if $truename}name:{$truename}({if $gender==1}先生{else}女士{/if})<br/>{/if}
			{if $department}department:{$department}<br/>{/if}
			{if $career}career:{$career}<br/>{/if}
			{if $mobile}mobile:{$mobile}<br/>{/if}
			{if $telephone}telephone:{$telephone}<br/>{/if}
			{if $fax}fax:{$fax}<br/>{/if}
			{if $address}address:{$address}<br/>{/if}
			{if $postcode}postcode:{$postcode}<br/>{/if}
			{if $mail}mail:{$mail}<br/>{/if}
			{if $homepage}homepage:{$homepage}<br/>{/if}
			{if $qq && $DT[im_qq]}QQ:{$qq}<br/>{/if}
			{if $ali && $DT[im_ali]}ali:{$ali}<br/>{/if}
			{if $msn && $DT[im_msn]}MSN:{$msn}<br/>{/if}
			{if $skype && $DT[im_skype]}Skype:{$skype}<br/>{/if}
			Letters:<a href="index.php?moduleid=2&amp;action=message_send&amp;touser={$username}" class="b">Click here to send</a><br/>
		{else}
		Entitled to see, please upgrade<br/>
		{/if}
		</div>
	{else}
		<div class="content">
		{if $vip}VIP:{VIP} {$vip}<br/>{/if}
		{if $areaid}area:{area_pos($areaid, '/')}<br/>{/if}
		{if $type}type:{$type}{if $mode}({$mode}){/if}<br/>{/if}
		{if $regyear}regyear:{$regyear}<br/>{/if}
		{if $capital}capital:{$capital}万{$regunit}<br/>{/if}
		{if $business}business:{$business}<br/>{/if}
		</div>
		<!--{php $tags=tag("moduleid=5&condition=status=3 and elite>0 and username='$username'&pagesize=5&length=$len&order=edittime desc&template=null");}-->
		{if $tags}
		<div class="box_head"><span class="f_r px12"><a href="index.php?moduleid={$moduleid}&amp;username={$username}&amp;action=sell">more...&raquo;</a></span><strong>Recommended Products</strong></div>
		<ul class="listtxt">
		{loop $tags $v}
		<li><span class="f_r px11 f_gray">&nbsp;&nbsp;{timetodate($v[edittime], 3)}</span><a href="index.php?moduleid=5&amp;itemid={$v[itemid]}"><strong>{$v[title]}</strong></a></li>
		{/loop}
		</ul>
		{/if}
	{/if}
{else}
	{loop $lists $v}
	<div class="listimg">
	<ul>
	<li{if $v[vip]} class="vip" title="{VIP}:{$v[vip]}"{/if}><a href="index.php?moduleid={$moduleid}&amp;username={$v[username]}"><strong>{$v[company]}</strong></a></li>
	<li><span>business：{$v[business]}</span></li>
	<li><span>{area_pos($v[areaid], '', 2)}{if $v[mode]}&nbsp;&nbsp;({$v[mode]}){/if}&nbsp;&nbsp;{if $v[validated]}[Verified]{else}[unverified]{/if}</span></li>
	</ul>
	</div>
	{/loop}
{/if}
	{if $pages}<div class="pages">{$pages}</div>{/if}
	{template 'chip-search', $TP}
</div>
{template 'footer', $TP}